import { stringify } from 'qs';
import http from "~/utils/http";

export default {
  async query ({page = 1, size = 100}) {
    try {
      let result = await http.get(`/api/cms/category?${stringify({page, size})}`)
      return result.data
    } catch (error) {
      return []
    }
  }
}